From: Florian Müllner Date: Tue, 20 Feb 2018 09:24:24 +0000 (+0100) Subject: build: Minor cleanups X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a347ed99121ae397a96d6a754de0b6fa970c2b8f;p=gnome-shell.git build: Minor cleanups find_program() defaults to require the program in question, and as failing to locate it is now fatal, there's no longer a need for checking whether it was found later. Spotted by Michael Catanzaro. --- diff --git a/data/theme/meson.build b/data/theme/meson.build index cf941ef27..22bae3dd2 100644 --- a/data/theme/meson.build +++ b/data/theme/meson.build @@ -14,14 +14,12 @@ styles = [ theme_deps = [] -if sassc.found() - foreach style: styles - theme_deps += custom_target('style-' + style, - input: '@0@.scss'.format(style), - output: '@0@.css'.format(style), - command: [ - sassc, '-a', '@INPUT@', '@OUTPUT@' - ], - depend_files: theme_sources) - endforeach -endif +foreach style: styles + theme_deps += custom_target('style-' + style, + input: '@0@.scss'.format(style), + output: '@0@.css'.format(style), + command: [ + sassc, '-a', '@INPUT@', '@OUTPUT@' + ], + depend_files: theme_sources) +endforeach diff --git a/meson.build b/meson.build index 895246e61..f5b08b8f9 100644 --- a/meson.build +++ b/meson.build @@ -138,7 +138,7 @@ endif mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir') python = find_program('python3') -sassc = find_program('sassc', required: true) +sassc = find_program('sassc') cc = meson.get_compiler('c')